export default {
  totalPrice(state) {
    // let totalPrice = 0
    let totalPrice = state.bookData.reduce((pre, val, index, arr) => {
      pre = pre + val.price
      return pre
    }, 0)
    return totalPrice
  }
}